package com.yidu.boss.sys.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class SeatExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public SeatExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSeatidIsNull() {
            addCriterion("seatId is null");
            return (Criteria) this;
        }

        public Criteria andSeatidIsNotNull() {
            addCriterion("seatId is not null");
            return (Criteria) this;
        }

        public Criteria andSeatidEqualTo(String value) {
            addCriterion("seatId =", value, "seatid");
            return (Criteria) this;
        }

        public Criteria andSeatidNotEqualTo(String value) {
            addCriterion("seatId <>", value, "seatid");
            return (Criteria) this;
        }

        public Criteria andSeatidGreaterThan(String value) {
            addCriterion("seatId >", value, "seatid");
            return (Criteria) this;
        }

        public Criteria andSeatidGreaterThanOrEqualTo(String value) {
            addCriterion("seatId >=", value, "seatid");
            return (Criteria) this;
        }

        public Criteria andSeatidLessThan(String value) {
            addCriterion("seatId <", value, "seatid");
            return (Criteria) this;
        }

        public Criteria andSeatidLessThanOrEqualTo(String value) {
            addCriterion("seatId <=", value, "seatid");
            return (Criteria) this;
        }

        public Criteria andSeatidLike(String value) {
            addCriterion("seatId like", value, "seatid");
            return (Criteria) this;
        }

        public Criteria andSeatidNotLike(String value) {
            addCriterion("seatId not like", value, "seatid");
            return (Criteria) this;
        }

        public Criteria andSeatidIn(List<String> values) {
            addCriterion("seatId in", values, "seatid");
            return (Criteria) this;
        }

        public Criteria andSeatidNotIn(List<String> values) {
            addCriterion("seatId not in", values, "seatid");
            return (Criteria) this;
        }

        public Criteria andSeatidBetween(String value1, String value2) {
            addCriterion("seatId between", value1, value2, "seatid");
            return (Criteria) this;
        }

        public Criteria andSeatidNotBetween(String value1, String value2) {
            addCriterion("seatId not between", value1, value2, "seatid");
            return (Criteria) this;
        }

        public Criteria andBrokeridIsNull() {
            addCriterion("brokerId is null");
            return (Criteria) this;
        }

        public Criteria andBrokeridIsNotNull() {
            addCriterion("brokerId is not null");
            return (Criteria) this;
        }

        public Criteria andBrokeridEqualTo(String value) {
            addCriterion("brokerId =", value, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridNotEqualTo(String value) {
            addCriterion("brokerId <>", value, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridGreaterThan(String value) {
            addCriterion("brokerId >", value, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridGreaterThanOrEqualTo(String value) {
            addCriterion("brokerId >=", value, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridLessThan(String value) {
            addCriterion("brokerId <", value, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridLessThanOrEqualTo(String value) {
            addCriterion("brokerId <=", value, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridLike(String value) {
            addCriterion("brokerId like", value, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridNotLike(String value) {
            addCriterion("brokerId not like", value, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridIn(List<String> values) {
            addCriterion("brokerId in", values, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridNotIn(List<String> values) {
            addCriterion("brokerId not in", values, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridBetween(String value1, String value2) {
            addCriterion("brokerId between", value1, value2, "brokerid");
            return (Criteria) this;
        }

        public Criteria andBrokeridNotBetween(String value1, String value2) {
            addCriterion("brokerId not between", value1, value2, "brokerid");
            return (Criteria) this;
        }

        public Criteria andSeatnameIsNull() {
            addCriterion("seatName is null");
            return (Criteria) this;
        }

        public Criteria andSeatnameIsNotNull() {
            addCriterion("seatName is not null");
            return (Criteria) this;
        }

        public Criteria andSeatnameEqualTo(String value) {
            addCriterion("seatName =", value, "seatname");
            return (Criteria) this;
        }

        public Criteria andSeatnameNotEqualTo(String value) {
            addCriterion("seatName <>", value, "seatname");
            return (Criteria) this;
        }

        public Criteria andSeatnameGreaterThan(String value) {
            addCriterion("seatName >", value, "seatname");
            return (Criteria) this;
        }

        public Criteria andSeatnameGreaterThanOrEqualTo(String value) {
            addCriterion("seatName >=", value, "seatname");
            return (Criteria) this;
        }

        public Criteria andSeatnameLessThan(String value) {
            addCriterion("seatName <", value, "seatname");
            return (Criteria) this;
        }

        public Criteria andSeatnameLessThanOrEqualTo(String value) {
            addCriterion("seatName <=", value, "seatname");
            return (Criteria) this;
        }

        public Criteria andSeatnameLike(String value) {
            addCriterion("seatName like", value, "seatname");
            return (Criteria) this;
        }

        public Criteria andSeatnameNotLike(String value) {
            addCriterion("seatName not like", value, "seatname");
            return (Criteria) this;
        }

        public Criteria andSeatnameIn(List<String> values) {
            addCriterion("seatName in", values, "seatname");
            return (Criteria) this;
        }

        public Criteria andSeatnameNotIn(List<String> values) {
            addCriterion("seatName not in", values, "seatname");
            return (Criteria) this;
        }

        public Criteria andSeatnameBetween(String value1, String value2) {
            addCriterion("seatName between", value1, value2, "seatname");
            return (Criteria) this;
        }

        public Criteria andSeatnameNotBetween(String value1, String value2) {
            addCriterion("seatName not between", value1, value2, "seatname");
            return (Criteria) this;
        }

        public Criteria andBrokernameIsNull() {
            addCriterion("brokerName is null");
            return (Criteria) this;
        }

        public Criteria andBrokernameIsNotNull() {
            addCriterion("brokerName is not null");
            return (Criteria) this;
        }

        public Criteria andBrokernameEqualTo(String value) {
            addCriterion("brokerName =", value, "brokername");
            return (Criteria) this;
        }

        public Criteria andBrokernameNotEqualTo(String value) {
            addCriterion("brokerName <>", value, "brokername");
            return (Criteria) this;
        }

        public Criteria andBrokernameGreaterThan(String value) {
            addCriterion("brokerName >", value, "brokername");
            return (Criteria) this;
        }

        public Criteria andBrokernameGreaterThanOrEqualTo(String value) {
            addCriterion("brokerName >=", value, "brokername");
            return (Criteria) this;
        }

        public Criteria andBrokernameLessThan(String value) {
            addCriterion("brokerName <", value, "brokername");
            return (Criteria) this;
        }

        public Criteria andBrokernameLessThanOrEqualTo(String value) {
            addCriterion("brokerName <=", value, "brokername");
            return (Criteria) this;
        }

        public Criteria andBrokernameLike(String value) {
            addCriterion("brokerName like", value, "brokername");
            return (Criteria) this;
        }

        public Criteria andBrokernameNotLike(String value) {
            addCriterion("brokerName not like", value, "brokername");
            return (Criteria) this;
        }

        public Criteria andBrokernameIn(List<String> values) {
            addCriterion("brokerName in", values, "brokername");
            return (Criteria) this;
        }

        public Criteria andBrokernameNotIn(List<String> values) {
            addCriterion("brokerName not in", values, "brokername");
            return (Criteria) this;
        }

        public Criteria andBrokernameBetween(String value1, String value2) {
            addCriterion("brokerName between", value1, value2, "brokername");
            return (Criteria) this;
        }

        public Criteria andBrokernameNotBetween(String value1, String value2) {
            addCriterion("brokerName not between", value1, value2, "brokername");
            return (Criteria) this;
        }

        public Criteria andDealSiteIsNull() {
            addCriterion("deal_site is null");
            return (Criteria) this;
        }

        public Criteria andDealSiteIsNotNull() {
            addCriterion("deal_site is not null");
            return (Criteria) this;
        }

        public Criteria andDealSiteEqualTo(String value) {
            addCriterion("deal_site =", value, "dealSite");
            return (Criteria) this;
        }

        public Criteria andDealSiteNotEqualTo(String value) {
            addCriterion("deal_site <>", value, "dealSite");
            return (Criteria) this;
        }

        public Criteria andDealSiteGreaterThan(String value) {
            addCriterion("deal_site >", value, "dealSite");
            return (Criteria) this;
        }

        public Criteria andDealSiteGreaterThanOrEqualTo(String value) {
            addCriterion("deal_site >=", value, "dealSite");
            return (Criteria) this;
        }

        public Criteria andDealSiteLessThan(String value) {
            addCriterion("deal_site <", value, "dealSite");
            return (Criteria) this;
        }

        public Criteria andDealSiteLessThanOrEqualTo(String value) {
            addCriterion("deal_site <=", value, "dealSite");
            return (Criteria) this;
        }

        public Criteria andDealSiteLike(String value) {
            addCriterion("deal_site like", value, "dealSite");
            return (Criteria) this;
        }

        public Criteria andDealSiteNotLike(String value) {
            addCriterion("deal_site not like", value, "dealSite");
            return (Criteria) this;
        }

        public Criteria andDealSiteIn(List<String> values) {
            addCriterion("deal_site in", values, "dealSite");
            return (Criteria) this;
        }

        public Criteria andDealSiteNotIn(List<String> values) {
            addCriterion("deal_site not in", values, "dealSite");
            return (Criteria) this;
        }

        public Criteria andDealSiteBetween(String value1, String value2) {
            addCriterion("deal_site between", value1, value2, "dealSite");
            return (Criteria) this;
        }

        public Criteria andDealSiteNotBetween(String value1, String value2) {
            addCriterion("deal_site not between", value1, value2, "dealSite");
            return (Criteria) this;
        }

        public Criteria andDealtypeIsNull() {
            addCriterion("dealType is null");
            return (Criteria) this;
        }

        public Criteria andDealtypeIsNotNull() {
            addCriterion("dealType is not null");
            return (Criteria) this;
        }

        public Criteria andDealtypeEqualTo(String value) {
            addCriterion("dealType =", value, "dealtype");
            return (Criteria) this;
        }

        public Criteria andDealtypeNotEqualTo(String value) {
            addCriterion("dealType <>", value, "dealtype");
            return (Criteria) this;
        }

        public Criteria andDealtypeGreaterThan(String value) {
            addCriterion("dealType >", value, "dealtype");
            return (Criteria) this;
        }

        public Criteria andDealtypeGreaterThanOrEqualTo(String value) {
            addCriterion("dealType >=", value, "dealtype");
            return (Criteria) this;
        }

        public Criteria andDealtypeLessThan(String value) {
            addCriterion("dealType <", value, "dealtype");
            return (Criteria) this;
        }

        public Criteria andDealtypeLessThanOrEqualTo(String value) {
            addCriterion("dealType <=", value, "dealtype");
            return (Criteria) this;
        }

        public Criteria andDealtypeLike(String value) {
            addCriterion("dealType like", value, "dealtype");
            return (Criteria) this;
        }

        public Criteria andDealtypeNotLike(String value) {
            addCriterion("dealType not like", value, "dealtype");
            return (Criteria) this;
        }

        public Criteria andDealtypeIn(List<String> values) {
            addCriterion("dealType in", values, "dealtype");
            return (Criteria) this;
        }

        public Criteria andDealtypeNotIn(List<String> values) {
            addCriterion("dealType not in", values, "dealtype");
            return (Criteria) this;
        }

        public Criteria andDealtypeBetween(String value1, String value2) {
            addCriterion("dealType between", value1, value2, "dealtype");
            return (Criteria) this;
        }

        public Criteria andDealtypeNotBetween(String value1, String value2) {
            addCriterion("dealType not between", value1, value2, "dealtype");
            return (Criteria) this;
        }

        public Criteria andBrokeragerateIsNull() {
            addCriterion("brokerageRate is null");
            return (Criteria) this;
        }

        public Criteria andBrokeragerateIsNotNull() {
            addCriterion("brokerageRate is not null");
            return (Criteria) this;
        }

        public Criteria andBrokeragerateEqualTo(BigDecimal value) {
            addCriterion("brokerageRate =", value, "brokeragerate");
            return (Criteria) this;
        }

        public Criteria andBrokeragerateNotEqualTo(BigDecimal value) {
            addCriterion("brokerageRate <>", value, "brokeragerate");
            return (Criteria) this;
        }

        public Criteria andBrokeragerateGreaterThan(BigDecimal value) {
            addCriterion("brokerageRate >", value, "brokeragerate");
            return (Criteria) this;
        }

        public Criteria andBrokeragerateGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("brokerageRate >=", value, "brokeragerate");
            return (Criteria) this;
        }

        public Criteria andBrokeragerateLessThan(BigDecimal value) {
            addCriterion("brokerageRate <", value, "brokeragerate");
            return (Criteria) this;
        }

        public Criteria andBrokeragerateLessThanOrEqualTo(BigDecimal value) {
            addCriterion("brokerageRate <=", value, "brokeragerate");
            return (Criteria) this;
        }

        public Criteria andBrokeragerateIn(List<BigDecimal> values) {
            addCriterion("brokerageRate in", values, "brokeragerate");
            return (Criteria) this;
        }

        public Criteria andBrokeragerateNotIn(List<BigDecimal> values) {
            addCriterion("brokerageRate not in", values, "brokeragerate");
            return (Criteria) this;
        }

        public Criteria andBrokeragerateBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("brokerageRate between", value1, value2, "brokeragerate");
            return (Criteria) this;
        }

        public Criteria andBrokeragerateNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("brokerageRate not between", value1, value2, "brokeragerate");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}